<?php

	/**
	 * Performe all the admin requests trough this controller which is based on the 
	 * AdminModule and is only available after a successfull login ($isLogin = true). 
	 * 
	 * @author bsuter
	 */
	Class AdminController Extends Yomm_Module_Admin {
		
		public $compression = true;
		
		Public $theme = Yomm_Config::VAR_BACKEND_THEME;
		
		Public $isLogin = true;
		
		Public $isLoginUrl = "?controller=login";
		
		public function __construct()
		{
			parent::__construct();
			
			if(!isset($this->session->last_stemp))
			{
				$this->setSession('last_stemp', mktime());	
			}
		}
		
		public function index()
		{
			return $this->view->show('admin/index.tpl');
		}
		
	}